#ifndef AVATAR_H
#define AVATAR_H

#include <QMap>
#include <QString>

class Avatar
{
public:
    Avatar();

    inline void AddMovie(const QString& name, const QString& file_path){map_avatar_movie_.insert(name, file_path);}
    inline void AddImage(const QString& name, const QString& file_path){map_avatar_img_.insert(name, file_path);}
    inline void RemoveMovie(const QString& name){map_avatar_movie_.remove(name);}
    inline void RemoveImage(const QString& name){map_avatar_img_.remove(name);}
    inline void ClearMovie(){map_avatar_movie_.clear();}
    inline void ClearImage(){map_avatar_img_.clear();}
    inline void ClearAll(){ClearMovie();ClearImage();}

    inline QString GetMoviePath(const QString& name) const {return map_avatar_movie_.value(name);}
    inline QString GetImagePath(const QString& name) const {return map_avatar_img_.value(name);}

private:
    QMap<QString, QString>  map_avatar_movie_;
    QMap<QString, QString>  map_avatar_img_;
};

#endif // AVATAR_H
